package com.canaan.business.service.storehouse;

import com.canaan.business.domain.storehouse.StockCheckDiff;
import com.canaan.business.domain.storehouse.WmsInOutStorage;

import java.util.List;


/**
 * 出入库记录Service接口
 *
 * @author ruoyi
 * @date 2022-11-30
 */
public interface IWmsInOutStorageService
{
    /**
     * 查询出入库记录
     *
     * @param id 出入库记录主键
     * @return 出入库记录
     */
    public WmsInOutStorage selectWmsInOutStorageById(Long id);

    /**
     * 查询出入库记录列表
     *
     * @param wmsInOutStorage 出入库记录
     * @return 出入库记录集合
     */
    public List<WmsInOutStorage> selectWmsInOutStorageList(WmsInOutStorage wmsInOutStorage);

    /**
     * 新增出入库记录(包含处理库存业务数据)
     *
     * @param wmsInOutStorage 出入库记录
     * @return 结果
     */
    public int insertWmsInOutStorage(WmsInOutStorage wmsInOutStorage);

    /**
     * 新增出入库记录
     * @param wmsInOutStorage
     * @return
     */
    public int addWmsInOutStorage(WmsInOutStorage wmsInOutStorage);
    /**
     * 修改出入库记录
     *
     * @param wmsInOutStorage 出入库记录
     * @return 结果
     */
    public int updateWmsInOutStorage(WmsInOutStorage wmsInOutStorage);

    /**
     * 批量删除出入库记录
     *
     * @param ids 需要删除的出入库记录主键集合
     * @return 结果
     */
    public int deleteWmsInOutStorageByIds(Long[] ids);

    /**
     * 删除出入库记录信息
     *
     * @param id 出入库记录主键
     * @return 结果
     */
    public int deleteWmsInOutStorageById(Long id);

    public int batchUpdateInOutStorage(List<WmsInOutStorage> inOutStorageList);
    public int batchInsertInOutStorage(List<WmsInOutStorage> inOutStorageList);

    void insertCheckInOutStorage(List<StockCheckDiff> diffs);

    WmsInOutStorage insertWmsInOutStorageWithStock(WmsInOutStorage inStorage);
}
